# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dnscobra
pkgver=1.0
pkgrel=5
groups=('blackarch' 'blackarch-recon')
pkgdesc='DNS subdomain bruteforcing tool with Tor support through torsocks.'
url='https://github.com/dmitescu/dnscobra'
license=('GPL')
arch=('any')
depends=('python')
source=("https://github.com/dmitescu/dnscobra/archive/$pkgver.tar.gz")
sha512sums=('c0e5a1ac6425ce4a79ed48ca30d30e88c7173a85a9c5815f51ae5d6b6cce600d6f97ae8a5cab9d0dd444303027c620e099f4a529d24607a6cae6efa1e059381e')

prepare() {
  cd "$pkgname-$pkgver"

  sed -i 's|bin/python|usr/bin/python|' "$pkgname.py"
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

